package com.hjd.shop.api.service;

import com.baomidou.mybatisplus.service.IService;
import com.hjd.shop.base.Response;
import com.hjd.shop.entity.SOrderPay;
import org.apache.rocketmq.client.exception.MQBrokerException;
import org.apache.rocketmq.client.exception.MQClientException;
import org.apache.rocketmq.remoting.exception.RemotingException;

/**
 * <p>
 * 订单支付表 服务类
 * </p>
 *
 * @author 胡江迪
 * @since 2020-10-13
 */
public interface SOrderPayService extends IService<SOrderPay> {
    /**
     * 创建支付订单
     * @param orderPay
     */
    Response<SOrderPay> createOrderPay(SOrderPay orderPay);

    /**
     * 第三方平台 支付成功后的回调函数
     * @param orderPay
     * @return
     */
    Response payedCallBack(SOrderPay orderPay);
}
